﻿@using TheBoard.Models
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>

    <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"/>
    <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css"/>
</head>
    <body>
        <div class="navbar">
            <div class="navbar-inner">
                <div class="container">
                    <a class="brand" href="/">TheBoard</a>
                    @if (Request.IsAuthenticated)
                    {
                        var gravatarUrl = DependencyResolver.Current.GetService<IGravatarService>().GetImageUrl(DependencyResolver.Current.GetService<IGetCurrentUser>().User.Email);
                    
                        <ul class="nav">
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-home icon-white"></i>&nbsp;Project<b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="@Url.Content("~/project/index/Kiwi.Json")"><i class="icon-home"></i> Kiwi.Json</a></li>
                                    <li><a href="@Url.Content("~/project/index/Scrummoner")"><i class="icon-home"></i> Scrummoner</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">Create new project</a></li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav pull-right">
                            <li class="divider-vertical"></li>
                            <li class="dropdown">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    <i class="icon-cog icon-white"></i>&nbsp;Settings<b class="caret"></b>
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a href="#"><i class="icon-pencil"></i>Edit</a></li>
                                    <li><a href="#"><i class="icon-trash"></i>Delete</a></li>
                                    <li><a href="#"><i class="icon-ban-circle"></i>Ban</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">Make admin</a></li>
                                </ul>

                            </li>
                            <li class="divider-vertical"></li>
                            <li></li>
                            <li><a href="@Url.Content("~/account/signout")"><i class="icon-off icon-white"></i>&nbsp;Sign
                                    out
                                    <img src="@gravatarUrl?s=24"/>
                                </a></li>
                        </ul>
                    }
                </div>
            </div>
        </div>
        <div class="container">
            <section>
                @RenderBody()
            </section>
        </div>
    </body>
    <script type="text/javascript" data-main="@Url.Content("~/assets/main")" src="@Url.Content("~/assets/require/require.js")"></script>
    <script type="text/javascript">@RenderSection("Require", false)</script>
</html>
